home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000354_fdc@columbia.edu_Wed Oct 29 17:21:52 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: TEST NETWORK CONNECTION
Date: 29 Oct 2003 17:51:13 GMT
Organization: Columbia University
Lines: 29
Message-ID: <slrnbpvvgh.751.fdc@sesame.cc.columbia.edu>
References: <4c64004.0310290631.3b5f136c@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1067449873 19581 128.59.59.56 (29 Oct 2003 17:51:13 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 29 Oct 2003 17:51:13 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14608
In article <4c64004.0310290631.3b5f136c@posting.google.com>, Carl wrote:
: I am trying to write a script which looks to see if a netwok
: connection is available and if it is sent files over the network. If
: the network is not available I want to initiate a script that will
: send the files over a land line phone.
:
echo "Trying net..."
set host xxx
if fail {
echo "Net connection failed - trying phone..."
set modem type yyy
set speed 57600 ; or whatever
dial 7654321
if fail exit 1 "Phone connection failed too"
}
; If you reach this point you have a connection,
; and you can log in, start Kermit on the other end,
; transfer files, and log out.
See "help set host" for SET HOST command details. See "help dial" and
"help set dial" and "help set modem" for dialing options and details.
See:
http://www.columbia.edu/kermit/ckscripts.html
for a scripting tutorial and examples.
- Frank